.text
.section .rodata
.LC0:
    .string "a is %d\n"

.text
.globl f
.type f, @function
f:
    addi sp, sp, -16
    sd ra, 8(sp)
    sd s0, 0(sp)

    addiw a1, a0, 1
    lui a5, %hi(.LC0)
    addi a0, a5, %lo(.LC0)
    call printf

    ld ra, 8(sp)
    ld s0, 0(sp)
    addi sp, sp, 16
    jr ra

.globl main
.type main, @function
main:
    addi sp, sp, -32
    sd ra, 24(sp)
    sd s0, 16(sp)

    addi s0, sp, 16
    li a5, 10
    sw a5, -4(s0)
    lw a0, -4(s0)
    call f

    ld ra, 24(sp)
    ld s0, 16(sp)
    addi sp, sp, 32
    jr ra